#ifndef _ASK_WAVE_H_
#define _ASK_WAVE_H_

#include "../../wave/Wave.h"
#include "../../embeddable/math/EmbeddableMath.h"

/*
	class : AskWave
	desc : Implements simple ASK wave modulation taking in a carrier 
		wave.
*/
class AskWave
{
	private : 
	
	Wave carrier;
	public :
	AskWave(Wave& c) { carrier = c;}
	AskWave(double A, double f, double p){carrier = Wave(A, f, p);}

	double get(unsigned long int time, double value)
	{
		return value * carrier.get(time);
	}
};


#endif
